package com.asj.house.client;

import com.asj.house.config.feign.HouseNoticeFeignConfig;
import com.asj.house.returns.RespEntity;
import com.asj.house.vo.param.NoticeParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author asj
 * @version V1.0.0
 * @description: 公告管理 feign调用
 * @date 2021/02/24 17:00
 */
@FeignClient(name = "houseNoticeFeignClient", url = "${manage.url}", configuration = HouseNoticeFeignConfig.class)
public interface HouseNoticeClient {

    /**
     * 公告列表
     * @return
     */
    @GetMapping("/house-notice/list")
    RespEntity noticeList();

    /**
     * 发布公告
     * @return
     */
    @PostMapping("/house-notice/insert")
    RespEntity insertNotice(@RequestBody NoticeParam noticeParam);

}
